package com.tianheng.modbus.util;

import java.util.Date;

/**************************************************
 * copyright (c) 2020, peng.cao@tianheng-uestc.com All Rights Reserved.
 * created by peng.cao
 * date:       2020/7/3 0003
 * since:      1.0.0.1
 * description:
 *
 **************************************************/
public class TimeUtil {

    public static long pastSecnod(Date date) {
        long t = System.currentTimeMillis()-date.getTime();
        return t/(1000);
    }
}
